<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" type="text/css" href="./com/view.css">
    <script type="text/javascript" src="../js/vue.js"></script>
    <script type="text/javascript" src="../js/view.js"></script>
    <style>
        .demo-split{
            height: 200px;
            border: 1px solid #dcdee2;
        }
        .demo-split-pane{
            padding: 10px;
        }
    </style>
<body>
    <div id="app">
        <div class="demo-split">
            <Split v-model="split1" mode="vertical" @on-move-end="moveEnd" @on-move-start="moveStart" @on-moving="movIng">
                <div slot="top" class="demo-split-pane">
                    这是一个
                </div>
                <div slot="bottom" class="demo-split-pane">
                    Right Pane
                </div>
            </Split>
        </div>
    </div>


    <script>
        new Vue({
            el: '#app',
            data:{
                split1: 0.5
            },
            methods:{
                moveStart(e){
                    console.log(e)
                },
                movIng(e){
                    console.log(e)
                },
                moveEnd(e){
                    console.log(e)
                },

            }
        })
    </script>
</body>
</html>
